package com.yaorange.mapper;

import com.yaorange.entity.Apply;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.HashMap;
import java.util.List;

public interface ApplyMapper extends Mapper<Apply> {
    //表单数据
    List<Apply> selectByXml(Integer state);

    //修改用户状态
    int updateApplyState(@Param("applyId") Integer applyId, @Param("stateId") Integer stateId);

    List<Apply> selectByXmlUser(@Param("state") Integer state, @Param("userId") Integer userId);

    //申请列表界面
    List<Apply> selectApply(@Param("userId") Integer userId, @Param("goodsName") String goodsName, @Param("typeId") Integer typeId);

    //测试mysql
    HashMap<String, Object> testTime();

    //测试插入时间
    int insertStringTime(@Param("str") String str);

    int insertDate(@Param("date") Date date);


}
